package org.dromara.xyyw.service;

import org.dromara.xyyw.domain.XyywShopProductComment;
import org.dromara.xyyw.domain.bo.XyywShopProductCommentBo;
import org.dromara.xyyw.domain.query.XyywShopProductCommentQuery;
import org.dromara.xyyw.domain.vo.XyywShopProductCommentVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.common.mybatis.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 商铺商品评论Service接口
 *
 * @author yf
 * @date 2024-05-29
 */
public interface IXyywShopProductCommentService extends IService<XyywShopProductComment> {

    /**
     * 查询商铺商品评论
     *
     * @param commentId 主键
     * @return XyywShopProductCommentVo
     */
    XyywShopProductCommentVo queryById(Integer commentId);

    /**
     * 查询商铺商品评论列表
     *
     * @param query 查询对象
     * @return XyywShopProductCommentVo
     */
    TableDataInfo<XyywShopProductCommentVo> queryPageList(XyywShopProductCommentQuery query);

    /**
     * 查询商铺商品评论列表
     *
     * @param query 查询对象
     * @return XyywShopProductCommentVo
     */
    List<XyywShopProductCommentVo> queryList(XyywShopProductCommentQuery query);

    /**
     * 新增商铺商品评论
     *
     * @param bo 商铺商品评论新增业务对象
     * @return Boolean
     */
    Boolean insertByBo(XyywShopProductCommentBo bo);

    /**
     * 修改商铺商品评论
     *
     * @param bo 商铺商品评论编辑业务对象
     * @return Boolean
     */
    Boolean updateByBo(XyywShopProductCommentBo bo);

    /**
     * 校验并批量删除商铺商品评论信息
     *
     * @param ids 主键集合
     * @return Boolean
     */
    Boolean deleteWithValidByIds(Collection<Integer> ids);
}
